package team.seekers.table.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import team.seekers.table.entity.vo.User;
import team.seekers.table.result.Result;
import team.seekers.table.service.SysuserService;

import javax.ws.rs.PUT;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cbj
 * @since 2021-04-26
 */
@RestController
@RequestMapping("/table/sysuser")
public class SysuserController {
    @Autowired
    private SysuserService userService;
    @PutMapping("/bind")
    public Result bind(@RequestBody User user){
        userService.bind(user);
        return Result.success();
    }
}

